<?php
return [
    'easySms' => [
        // HTTP 请求的超时时间（秒）
        'timeout' => 10.0,

        // 默认发送配置
        'default' => [
            // 网关调用策略，默认：顺序调用
            'strategy' => \Overtrue\EasySms\Strategies\OrderStrategy::class,

            // 默认可用的发送网关
            'gateways' => [
                'chuanglan',
            ],
        ],
        // 可用的网关配置
        'gateways' => [
            'errorlog' => [
                'file' => '/tmp/EASY-SMS.LOG',
            ],
            'chuanglan' => [
                'account' => env('SMS_253_ACCOUNT'),
                'password' => env('SMS_253_PASSWORD'),
                'intel_account' => env('INTEL_SMS_253_ACCOUNT'),
                'intel_password' => env('INTEL_SMS_253_PASSWORD'),
                'channel'  => \Overtrue\EasySms\Gateways\ChuanglanGateway::CHANNEL_PROMOTION_CODE,
                'sign' => env('SMS_253_SIGN'),
                'unsubscribe' => env('SMS_253_UNSUBSCRIBE'),
                'templates' => [
                    'register' => env('SMS_TEMPLATE_REGISTER'),
                ]
            ],
        ],
    ],
    'kmi_cloud' => [
        'access_key' => env('KMI_CLOUD_ACCESS_KEY'),
        'secret_key' => env('KMI_CLOUD_SECRET_KEY'),
        //有效时间，默认五分钟
        'valid_minutes' => env('KMI_CLOUD_VALID_MINUTES',5),
        'from' => env('KMI_CLOUD_ACCESS_FROM','RSHLVV'),
        'message' => env('KMI_CLOUD_ACCESS_MESSAGE','[MG] Your verification code is %d')

    ],
    'node_sms' => [
        //验证码短信配置
        'account' => env('NODE_SMS_ACCOUNT','shenlan'),
        'password' => env('NODE_SMS_PASSWORD','shenlan123'),
        //营销短信配置
        'market_account' => env('NODE_SMS_MARKET_ACCOUNT',''),
        'market_password' => env('NODE_SMS_MARKET_PASSWORD',''),
        'market_sender' => env('NODE_SMS_MARKET_SENDER',''),
        'market_start_str' => env('NODE_SMS_MARKET_START_STR',''),
        'market_end_str' => env('NODE_SMS_MARKET_END_STR',''),
    ],

    //营销短信发送开关
    'market_sms' => env('MARKET_SMS',false)
];
